<div class="grid_4">       
    <div class="da-panel">
        <div class="da-panel-header">
            <span class="da-panel-title">
                <img alt="" src="<?php echo $this->themeUrl; ?>/files/theme/images/icons/color/monitor.png">
                Xem Paylist
            </span>
        </div>

        <div id="da-ex-tabs" class="ui-tabs ui-widget ui-widget-content ui-corner-all" >
            <?php $this->renderPartial('_tabs')?>
            <div>
                <?php $this->widget('admin.components.widgets.AlertWidget');?>
                <hr/>
                <table class="da-table" style="border: 1px solid #ddd;">
                    <thead>
                        <tr>
                            <th><?php echo Paylist::model()->getAttributeLabel('manager_id');?></th>
                            <th><?php echo Paylist::model()->getAttributeLabel('name');?></th>
                            <th><?php echo Paylist::model()->getAttributeLabel('note');?></th>
                            <th><?php echo Paylist::model()->getAttributeLabel('date_from');?></th>
                            <th><?php echo Paylist::model()->getAttributeLabel('date_to');?></th>
                            <th><?php echo Paylist::model()->getAttributeLabel('price_total');?></th>
                            <th><?php echo Paylist::model()->getAttributeLabel('price_return');?></th>
                            <th><?php echo Paylist::model()->getAttributeLabel('created');?></th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td><?php echo $model->manager->name;?></td>
                            <td><?php echo $model->name?></td>
                            <td><?php echo $model->note?></td>
                            <td><?php echo $model->date_from?></td>
                            <td><?php echo $model->date_to?></td>
                            <td><?php echo $model->price_total?> k</td>
                            <td><?php echo $model->price_return?> k</td>
                            <td><?php echo $model->created?></td>
                        </tr>
                    </tbody>
                </table>
                <hr/>

                <table class="da-table" style="border: 1px solid #ddd;">
                    <thead>
                        <tr>
                            <th></th>
                            <th>Mã đơn hàng</th>
                            <th>Khách hàng</th>
                            <th>Đồ giặt</th>
                            <th>Thành tiền</th>
                            <th>Ngày tạo</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php foreach($model->bills as $i => $bill):?>
                            <tr class="<?php echo ($i%2==0) ? 'odd' : 'even'?>">
                                <td><input name="bill[]" class="bill" price="<?php echo $bill->price?>" value="<?php echo $bill->id?>" type="checkbox" checked="checked" disabled="disabled"></td>
                                <td><?php echo $bill->code?></td>
                                <td><?php echo $bill->customerNameOnly?> - <?php echo $bill->customer->phone?> </td>
                                <td><?php echo $bill->listItemHtml?></td>
                                <td><?php echo $bill->price?>k</td>
                                <td><?php echo $bill->created?></td>
                            </tr>
                            <?php endforeach?>
                    </tbody>
                </table>


            </div>
        </div>

    </div>
</div>       